import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue'),
    redirect:{
      name:"Content1"
    },
    children:[
      {
        path: 'Content1',
        name: 'Content1',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content1.vue'),
      },
      {
        path: 'Content2',
        name: 'Content2',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content2.vue'),
      },
      {
        path: 'Content3',
        name: 'Content3',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content3.vue'),
      },
      {
        path: 'Content3Edit',
        name: 'Content3Edit',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content3Edit.vue'),
      },
      {
        path: 'Content4',
        name: 'Content4',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content4.vue'),
      },
      {
        path: 'Content4Edit',
        name: 'Content4Edit',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content4Edit.vue'),
      },
      {
        path: 'Content5',
        name: 'Content5',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content5.vue'),
      },
      {
        path: 'Content5Edit',
        name: 'Content5Edit',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content5Edit.vue'),
      },
      {
        path: 'Content6',
        name: 'Content6',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content6.vue'),
      },
      {
        path: 'Content6Edit',
        name: 'Content6Edit',
        component: () => import(/* webpackChunkName: "about" */ '../views/Content6Edit.vue'),
      }
      
    ]
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
